{% extends 'mote.html' %}
{% block asset %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">添加物资</h3>
            </div>
            <div class="panel-body">
                <form class="form-horizontal" action="" method="post">
                    {% csrf_token %}
                    <p>
                        <label class="col-sm-2 col-sm-offset-1 control-label"
                               for="{{ form_obj.name.id_for_label }}">{{ form_obj.name.label }}:</label>{{ form_obj.name }}
                        <span style="color: red">{{ form_obj.errors.0 }}</span><span style="color: red">{{ error }}</span>
                    </p>
                    <p>
                        <label class="col-sm-2 col-sm-offset-1 control-label"
                               for="{{ form_obj.floor.id_for_label }}">{{ form_obj.floor.label }}:</label>{{ form_obj.floor }}
                        <span style="color: red">{{ form_obj.errors.0 }}</span>
                    </p>
                    <p>
                        <label class="col-sm-2 col-sm-offset-1 control-label"
                               for="{{ form_obj.room.id_for_label }}">{{ form_obj.room.label }}:</label>{{ form_obj.room }}
                        <span style="color: red">{{ form_obj.errors.0 }}</span>
                    </p>
                      <p>
                        <label class="col-sm-2 col-sm-offset-1 control-label"
                               for="{{ form_obj.username.id_for_label }}">{{ form_obj.username.label }}:</label>{{ form_obj.username }}
                        <span style="color: red">{{ form_obj.errors.0 }}</span>
                    </p>





                    <button style="margin-left: 30%" class="btn btn-primary">提交</button>


            </form>
        </div>
    </div>

    </div>

{% endblock %}
{% block k1 %}
    class="active"
{% endblock %}
{% block margin %}
    <style>
    .col-md-offset-2 {
        margin-left: 0;
    }
    </style>
{% endblock %}